package com.java110.intf.fee;

import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.cheque.ChequeDto;
import com.java110.po.cheque.ChequePo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;


/*
 * 类表述： 服务之前调用的接口类，不对外提供接口能力 只用于接口建调用
 *
 */
@FeignClient(name = "fee-service", configuration = {FeignConfiguration.class})
@RequestMapping("/chequeApi")
public interface IChequeInnerServiseSMO {


    @RequestMapping(value = "/saveCheque", method = RequestMethod.POST)
    public int saveCheque(@RequestBody ChequePo ChequePo);

    @RequestMapping(value = "/updateCheque", method = RequestMethod.POST)
    public int updateCheque(@RequestBody  ChequePo ChequePo);

    @RequestMapping(value = "/deleteCheque", method = RequestMethod.POST)
    public int deleteCheque(@RequestBody ChequePo ChequePo);

    /**
     * <p>查询票据信息</p>
     *
     *
     * @param ChequeDto 数据对象分享
     * @return ChequeDto 对象数据
     */
    @RequestMapping(value = "/queryCheques", method = RequestMethod.POST)
    List<ChequeDto> queryCheques(@RequestBody ChequeDto ChequeDto);

    /**
     * 查询<p>票据管理</p>总记录数
     *
     * @param ChequeDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryChequesCount", method = RequestMethod.POST)
    int queryChequesCount(@RequestBody ChequeDto ChequeDto);

}
